<%@ page language="java" import="java.util.*,student.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>学生登录</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

  </head>
  <body>
  <%
  		Student student=(Student)session.getAttribute("user_login");
		if(student!=null)
		{
			out.print("<h1>欢迎您，"+student.getSname()+"，您已登录！</h1>");
			return;
		}
   %>
  <form action="doStudentLogin.jsp" method="post">
	   学号： <input type="text" name="stuno">
	    密码：<input type="text" name="pass">
	   <input type="submit" name="Submit" value="提交"> 
	   <input type="reset" name="Reset"	value="重置">
	  </form> 
  </body>
</html>